package com.ruoyi.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * 学生实验主对象 ex_experiment_main
 * 
 * @author ruoyi
 * @date 2024-08-24
 */
public class ExExperimentMain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 实验名称 */
    @Excel(name = "实验名称")
    private String experimentName;

    /** 实验描述 */
    @Excel(name = "实验描述")
    private String experimentDescribe;

    /** 实验状态(0未开始，1进行中，2结束) */
    @Excel(name = "实验状态(0未开始，1进行中，2结束)")
    private String experimentStatus;

    /** 实验开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "实验开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 实验结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "实验结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 接受开始 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "接受开始", width = 30, dateFormat = "yyyy-MM-dd")
    private String beginTimeReceive;

    /** 接受结束 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "接受结束", width = 30, dateFormat = "yyyy-MM-dd")
    private String endTimeReceive;

    /** 创建人姓名 */
    @Excel(name = "创建人姓名")
    private String creatorName;

    /** 创建人id */
    @Excel(name = "创建人id")
    private String creatorId;

    /** 时间差 */
    @Excel(name = "时间差")
    private String timeDifference;

    //存储当前登陆人id
    private String loginId;

    private String tempId;

    List<ExExperimentSide> sideTables = new ArrayList<>();

    List<ExExperimentSupplementary> supplementaries = new ArrayList<>();

    public String getBeginTimeReceive() {
        return beginTimeReceive;
    }

    public void setBeginTimeReceive(String beginTimeReceive) {
        this.beginTimeReceive = beginTimeReceive;
    }

    public String getEndTimeReceive() {
        return endTimeReceive;
    }

    public void setEndTimeReceive(String endTimeReceive) {
        this.endTimeReceive = endTimeReceive;
    }

    public String getTempId() {
        return tempId;
    }

    public void setTempId(String tempId) {
        this.tempId = tempId;
    }

    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public String getTimeDifference() {
        return timeDifference;
    }

    public void setTimeDifference(String timeDifference) {
        this.timeDifference = timeDifference;
    }

    public List<ExExperimentSide> getSideTables() {
        return sideTables;
    }

    public List<ExExperimentSupplementary> getSupplementaries() {
        return supplementaries;
    }

    public void setSupplementaries(List<ExExperimentSupplementary> supplementaries) {
        this.supplementaries = supplementaries;
    }

    public void setSideTables(List<ExExperimentSide> sideTables) {
        this.sideTables = sideTables;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setExperimentName(String experimentName) 
    {
        this.experimentName = experimentName;
    }

    public String getExperimentName() 
    {
        return experimentName;
    }
    public void setExperimentDescribe(String experimentDescribe) 
    {
        this.experimentDescribe = experimentDescribe;
    }

    public String getExperimentDescribe() 
    {
        return experimentDescribe;
    }
    public void setExperimentStatus(String experimentStatus) 
    {
        this.experimentStatus = experimentStatus;
    }

    public String getExperimentStatus() 
    {
        return experimentStatus;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setCreatorName(String creatorName) 
    {
        this.creatorName = creatorName;
    }

    public String getCreatorName() 
    {
        return creatorName;
    }
    public void setCreatorId(String creatorId) 
    {
        this.creatorId = creatorId;
    }

    public String getCreatorId() 
    {
        return creatorId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("experimentName", getExperimentName())
            .append("experimentDescribe", getExperimentDescribe())
            .append("experimentStatus", getExperimentStatus())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("creatorName", getCreatorName())
            .append("creatorId", getCreatorId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
